﻿namespace EyFramework.Sys.Core
{
    /// <summary>
    /// HIS服务的抽象类
    /// </summary>
    public interface IBaseHisService
    {
        /// <summary>
        /// 获取指定表的最大值，通过调用SPRF.GETMAXID获取
        /// </summary>
        /// <param name="tableName">表名</param>
        /// <param name="fieldName">字段名</param>
        /// <returns></returns>
        long GetHisMaxId(string tableName, string fieldName);

        /// <summary>
        /// 取当前时间
        /// </summary>
        /// <param name="formatStr"></param>
        /// <returns></returns>
        string GetCurrentDate(string formatStr = "YYYY-MM-DD HH24:MI:SS");
    }
}